<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Login</title>
  <script src="lib/jquery.min.js"></script>
  <script>
  $(function () {
    $('#login').on('click', function () {
      $.ajax({
        method: 'post',
        url: '/api/rest/post/userLoginUIService/login',
        data: JSON.stringify(['190747', 'abc123']),
        contentType: 'application/json',
        success: function (d) {
          window.location.href = '/index.html';
        }
      });
    });
  });
  </script>
</head>
<body>
wugang login
<button id="login">click to login</button>
<a></a>
</body>
</html>
